package org.dtrd.modules.record.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dtrd.modules.doctor.entity.bean.DoctorInfo;
import org.dtrd.modules.record.entity.bean.PatientShortInfo;
import org.dtrd.modules.record.entity.po.DtrdViewRlPatientSugarValue;

import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 患者最近血糖信息
 *
 * @author QR
 * @since 2022-04-18
 */
public interface IDtrdViewRlPatientSugarValueService extends IService<DtrdViewRlPatientSugarValue> {

    /**
     * 查询今日测量用户
     *
     * @param doctorId
     * @param orgCode
     * @param recordDate 默认当天
     * @return
     */
    List<PatientShortInfo> getMeasurePatientList(@Nullable Integer doctorId, @Nullable String orgCode, @Nullable String recordDate);

    List<PatientShortInfo> getMeasurePatientListV2(List<Integer> teamDoctorIdList,@Nullable String orgCode, @Nullable String recordDate);

    IPage<PatientShortInfo> getMeasurePatientListV3(List<Integer> teamDoctorIdList, @Nullable String orgCode, @Nullable String recordDate, @NotNull Integer pageNum, @Nullable Integer pageSize);
}
